import axios from '../utils/request'



// 查询设备断网下载
export function disconnected() {
    partner_revenue
    return axios({
        method: "GET",
        url: "devops/disconnected.json/",
        header: {
            'Content-Type': 'application/json'
        }

    })
}


export function partner_revenue(data) {
    return axios({
        method: "POST",
        url: "devops/partner_revenue.json/",
        data: data,
        header: {
            'Content-Type': 'application/json'
        }

    })
}


// 查询任务list
export function get_tasklist() {
    return axios({
        method: "GET",
        url: "devops/queryTask.json/",
        header: {
            'Content-Type': 'application/json'
        }
    })
}




// 调用后台接口 
export function pretreatment(data) {
    return axios({
        method: "POST",
        url: "devops/pretreatment.json/",
        data: data,
        header: {
            'Content-Type': 'application/json'
        }

    })
}





// 查询任务的状态，是否执行完成，执行完成下载，否则等待tips
export function querey_taskid(data) {
    return axios({
        method: "POST",
        url: "devops/querytaskid.json/",
        data: data,
        header: {
            'Content-Type': 'application/json'
        }

    })
}

export function querey_redis(data) {
    return axios({
        method: "POST",
        url: "devops/quereyredis.json/",
        data: data,
        header: {
            'Content-Type': 'application/json'
        }

    })
}



// 下载设备断网下载表格
// export function downloaddatafile() {
//     return axios({
//         method: "GET",
//         url: "devops/downdisconnected.json/",
//         responseType: 'blob'


//     })
// }


// 执行完成任务后，表格中点击下载
export function downfile(data) {
    return axios({
        method: "POST",
        data: data,
        url: "devops/downfile.json/",
        responseType: 'blob'


    })
}
